home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17349 < prev    next >
Encoding:
Text File  |  1996-08-05  |  884 b   |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!ram
  3. From: ram@netcom.com (Munagala V. S. Ramanath)
  4. Subject: Re: int::~int()
  5. Message-ID: <ramDpvxCw.6L9@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <317083F7.116E@public.sta.net.cn> <marnoldDpuDu9.D7s@netcom.com>
  8. Date: Mon, 15 Apr 1996 03:50:55 GMT
  9. Sender: ram@netcom9.netcom.com
  10.  
  11. marnold@netcom.com (Matt Arnold) writes:
  12.  
  13. >Xu Yifeng <jafd@public.sta.net.cn> writes:
  14.  
  15. >>Hi everybody,
  16.  
  17. >>can your compiler compile following program?
  18.  
  19. >>//------------------------
  20. >>void main()
  21. >>{
  22. >>     int i = 0;
  23.  
  24. >>     i.int::~int();
  25. >>}
  26. >>//------------------------
  27.  
  28. >>is it a legal C++ program?
  29.  
  30. >It's supposed to be, but most C++ compiler's will not compile it.
  31.  
  32.     gcc-2.7.2 compiles it just fine. The call is supposed to do nothing
  33.     and is discussed in Stroustrup's book, p. 576-577.
  34.  
  35.     Ram
  36.